//
//  RAPTextAttachment.swift
//  COPYCAT-Weibo
//
//  Created by 闫萌 on 1/10/16.
//  Copyright © 2016 RendezvousAuParadis. All rights reserved.
//

import UIKit

class RAPTextAttachment: NSTextAttachment {
    var emoticonModel: RAPEmoticonModel!
    
    var emoticonCode: String {
        if emoticonModel.type == "0" { // 图片
            return emoticonModel.chs!
        } else { // emoji
            return emoticonModel.code!
        }
    }
}
